x86/vMCE: MC{G,i}_CTL handling adjustments
authorJan Beulich <jbeulich@suse.com>
Mon, 13 Feb 2012 12:12:30 +0000 (13:12 +0100)
committerJan Beulich <jbeulich@suse.com>
Mon, 13 Feb 2012 12:12:30 +0000 (13:12 +0100)
commite2bfab7bd21a023044c69bf1ccffc942667980c3
tree854fb35ac7c93d6fa2e48b2f065a35654047dbcf
parent9ea8199eb51d465b24ecc427475e5d8abe71a597
x86/vMCE: MC{G,i}_CTL handling adjustments

- g_mcg_cap was read to determine whether MCG_CTL exists before it got
  initialized
- h_mci_ctrl[] and dom_vmce()->mci_ctl[] both got initialized via
  memset() with an inappropriate size (hence causing a [minor?]
  information leak)

Signed-off-by: Jan Beulich <jbeulich@suse.com>
Acked-by: Keir Fraser <keir@xen.org>
xen/arch/x86/cpu/mcheck/mce.c
xen/arch/x86/cpu/mcheck/mce.h
xen/arch/x86/cpu/mcheck/vmce.c